﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Room
{
    class MonsterAIStateBackBorn : MonsterAIStateBase
    {

        protected override void OnEnter()
        {
            controller.owner.StopTo(controller.bornPosition);
            controller.owner.PlayAnim("run");
        }

        protected override void OnTick()
        {
            if(!controller.owner.IsMoving())
            {
                controller.SwitchState(MonsterAIState.Rest);
            }
        }
        
    }
}

